<table id="data-load" class="yx-course-info" >
    <tr>
        <td>机构：</td>
        <td><?=isset($model->mechanic->name)?$model->mechanic->name:''?></td>
        <td>分成金额：</td>
        <td><?=$model->commission_money?> 元</td>
    </tr>
    <tr>
        <td>补贴金额：</td>
        <td><?=$model->subsidy_money?> 元</td>
        <td>额外奖惩：</td>
        <td><?=$model->additional_money?> 元</td>
    </tr>
    <tr>
        <td>是否付款：</td>
        <td><?=$model->pay_status == 1?'已付款':'未付款'?> </td>
        <td>付款人：</td>
        <td><?=$model->paymant_operator?> </td>
    </tr>
    <tr>
        <td>付款时间：</td>
        <td><?=$model->payment_time >0 ?\Yii::$app->formatter->asDatetime($model->payment_time):'未付款'?> </td>
        <td></td>
        <td></td>
    </tr>
    <tr>
        <td colspan="4" align="right">结算总结额：<?=$model->total?></td>
    </tr>
</table>
<h3 class="yx-table-title-text">奖惩明细</h3>
<table class="tablesaw table yx-table1 yx-table3 table-striped with-check">
    <thead>
    <tr class="yx-bgd2f6ec">
        <td>备注</td>
        <td>金额</td>
        <td>时间</td>
    </tr>
    </thead>
    <tbody>
    <?php if($subsidy != null) { ?>
      <?php foreach ($subsidy as $s) { ?>
        <tr>
           <td><?=$s->remark?></td>
           <td><?=$s->money?></td>
           <td><?=\Yii::$app->formatter->asDate($s->created_at);?></td>
         </tr>
      <?php } ?>
    <?php } ?>
    </tbody>
</table>
<h3 class="yx-table-title-text">审批流程</h3>
<table class="tablesaw table yx-table1 yx-table3 table-striped with-check">
    <thead>
    <tr class="yx-bgd2f6ec">
        <td>环节</td>
        <td>发起人</td>
        <td>审批人</td>
        <td>审批状态</td>
        <td>备注</td>
        <td>时间</td>
    </tr>
    </thead>
    <tbody>
    <?php if($reportList != null ) { ?>
       <?php foreach ($reportList as $item) { ?>
            <tr>
                <td><?=isset($stage[$item['stage']])?$stage[$item['stage']]:''?></td>
                <td><?=$item['sender_name']?></td>
                <td><?=$item['sendee_name']?></td>
                <td><?=$item['status']?></td>
                <td><?=$item['remark']?></td>
                <td><?=$item['created_at']?></td>
            </tr>
       <?php } ?>
    <?php } ?>
    </tbody>
</table>